package com.jzl.swing.rowmapper.impl;

import java.sql.ResultSet;
import java.sql.SQLException;
import com.jzl.swing.entity.Supplier;
import com.jzl.swing.rowmapper.RowMapper;

public class SupplierRowMapper implements RowMapper{

	@Override
	public Object getObjectMapper(ResultSet rSet) throws SQLException {
		Supplier supplier = new Supplier();
		supplier.setSupplier_id(rSet.getString("supplier_id"));
		supplier.setSupplier_name(rSet.getString("supplier_name"));
		supplier.setsupplier_address(rSet.getString("supplier_address"));
		supplier.setsupplier_contacter(rSet.getString("supplier_contacter"));
		supplier.setsupplier_describ(rSet.getString("supplier_describ"));
		supplier.setsupplier_phone(rSet.getString("supplier_phone"));
		
		return supplier;
	}

}
